#include "DengueVirus.h"
void DengueVirus::DoBorn()
{
	LoadDNAInformation();
	switch(rand()%3)
	{
	case 0: this->m_protein = "NS3";break;
	case 1: this->m_protein = "NS5";break;
	case 2: this->m_protein = "E";break;
	}
}
DengueVirus* DengueVirus::DoClone()const
{
	DengueVirus* _dengueVirus[2];
	_dengueVirus[0] = new DengueVirus(*this);
	_dengueVirus[1] = new DengueVirus(*this);
	return  *_dengueVirus;
}	
void DengueVirus::DoDie()
{
	delete[] this->m_protein;
	delete this;

}
void DengueVirus::InitResistance()
{
	if(this->m_protein == "NS3")
		this->m_resistance = rand()%11 + 1;
	if(this->m_protein == "NS5")
		this->m_resistance = rand()%21 + 11;
	if(this->m_protein == "E5")
		this->m_resistance = rand()%31 + 21;
}